package com.qitmiaojie.mapper;

import com.qitmiaojie.pojo.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qitmiaojie.pojo.dto.AdviceMsg;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Entity com.qitmiaojie.pojo.Activity
 */
@Mapper
@Repository
public interface ActivityMapper extends BaseMapper<Activity> {
   /***
   * @description 查询所有
   * @return
   * @author
   * @date
   */
   List<Activity> selectList() ;
    /***
     * @description 插入
     * @return
     * @author
     * @date
     */
    @Insert("INSERT INTO activity values(#{id},#{name},#{place},#{startdate},#{enddate},#{modality},#{description},#{status},#{issuer})")
    void insertActivity(Activity activity);
}




